/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.bindcard;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

/**
<p>Title:BindcardConfirm</p>  
<p>Description: �����п�-ȷ��</p>
 */
public class BindcardConfirm extends MerchantBaseRequest {

	private String trade_no;//*����ش� ���µ��ӿڳɹ���᷵��trade_no
	private String user_id;//*����ش� ���̻������ɹ���������
	private String verify_code;//*����ش� �ֻ���֤��
	private String url = "/bindcard/confirm";
	
	private String order_id;//[��Ӧ����] �̻����ɵı�ʶ�ñʽ��׵�Ψһ���
	private String gate_id;//[��Ӧ����] ���ط����еļ���
	private String p_agreement_id;//[��Ӧ����] �󿨳ɹ��᷵��Э��ţ��󿨳ɹ�������̻���ʹ�ÿ��֧��ʱ��ֻ��ʹ��Э��Ž���֧��
	private String last_four_cardid;//[��Ӧ����] ���п��ź���λ

	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public BindcardConfirm doRequest() throws Exception {
		Message<BindcardConfirm> response = UMFUtil.post(createAPIContext(), this,BindcardConfirm.class);
		MerchantBaseRequest baseResult = convertResult(response, BindcardConfirm.class);
		if(baseResult == null)
			return null;
		return (BindcardConfirm)baseResult;
	}

	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getTrade_no() {
		return trade_no;
	}

	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}

	public String getP_agreement_id() {
		return p_agreement_id;
	}

	public void setP_agreement_id(String p_agreement_id) {
		this.p_agreement_id = p_agreement_id;
	}

	public String getLast_four_cardid() {
		return last_four_cardid;
	}

	public void setLast_four_cardid(String last_four_cardid) {
		this.last_four_cardid = last_four_cardid;
	}

	public String getVerify_code() {
		return verify_code;
	}

	public void setVerify_code(String verify_code) {
		this.verify_code = verify_code;
	}

	public String getGate_id() {
		return gate_id;
	}

	public void setGate_id(String gate_id) {
		this.gate_id = gate_id;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("BindcardConfirm [trade_no=");
		builder.append(trade_no);
		builder.append(", user_id=");
		builder.append(user_id);
		builder.append(", verify_code=");
		builder.append(verify_code);
		builder.append(", url=");
		builder.append(url);
		builder.append(", order_id=");
		builder.append(order_id);
		builder.append(", gate_id=");
		builder.append(gate_id);
		builder.append(", p_agreement_id=");
		builder.append(p_agreement_id);
		builder.append(", last_four_cardid=");
		builder.append(last_four_cardid);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}

}
